
@extends('layouts.master')

@section("css")
    @parent
@stop

@section("body")
<div class="row">
    <div class="col-md-12">
        <!-- INPUTS -->
        <div class="panel">
            <div class="panel-heading">
                <h3 class="panel-title">医生详情</h3>
            </div>
            <div class="panel-body">
                <div class="input-group">
                    <span class="input-group-addon">头<span style="visibility:hidden;">占位符</span>像</span>
                    <img style="width: 100px;" src="{{ $wechatDoctor['headimgurl'] }}">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">昵<span style="visibility:hidden;">占位符</span>称</span>
                    <input type="text" class="form-control" value="{{ $wechatDoctor['nickname'] }}" disabled="disabled" style="background: #ffffff;">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">性<span style="visibility:hidden;">占位符</span>别</span>
                    <input type="text" class="form-control" value=" @if($wechatDoctor['sex'] == 1)男性@elseif($wechatDoctor['sex'] == 2)女性@else未知@endif" disabled="disabled" style="background: #ffffff;">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">所<span style="visibility:hidden;">占</span>在<span style="visibility:hidden;">占</span>地</span>
                    <input type="text" class="form-control" value="{{ $wechatDoctor['country'] }}&nbsp;&nbsp;{{ $wechatDoctor['province'] }}&nbsp;&nbsp;{{ $wechatDoctor['city'] }}" disabled="disabled" style="background: #ffffff;">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">是否已关注</span>
                    <input type="text" class="form-control" value='{{$wechatDoctor['subscribe']?"已关注":"未关注"}}' disabled="disabled" style="background: #ffffff;">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">是否已关注</span>
                    <input type="text" class="form-control" value='{{count($wechatDoctor['wechatDoctorInfo'])!=0?"已认证":"未认证"}}' disabled="disabled" style="background: #ffffff;">
                </div>
                <br>
                @if(count($wechatDoctor['wechatDoctorInfo'])!=0)
                <div class="input-group">
                    <span class="input-group-addon">姓<span style="visibility:hidden;">占位符</span>名</span>
                    <input type="text" class="form-control" value="{{$wechatDoctor['wechatDoctorInfo']['name']}}" disabled="disabled" style="background: #ffffff;">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">医生<span style="visibility:hidden;">占</span>图片</span>
                    <img style="width: 200px;" src="{{$wechatDoctor['wechatDoctorInfo']['headimg']}}">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">职<span style="visibility:hidden;">占位符</span>称</span>
                    <input type="text" class="form-control" value="{{$wechatDoctor['wechatDoctorInfo']['job_title']}}" disabled="disabled" style="background: #ffffff;">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">医生<span style="visibility:hidden;">占</span>类型</span>
                    <input type="text" class="form-control" value="{{$wechatDoctor['wechatDoctorInfo']['dr_type_desc']}}" disabled="disabled" style="background: #ffffff;">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">所属<span style="visibility:hidden;">占</span>医院</span>
                    <input type="text" class="form-control" value="{{$wechatDoctor['wechatDoctorInfo']['hospital']}}" disabled="disabled" style="background: #ffffff;">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">所属<span style="visibility:hidden;">占</span>科室</span>
                    <input type="text" class="form-control" value="{{$wechatDoctor['wechatDoctorInfo']['section']}}" disabled="disabled" style="background: #ffffff;">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">简<span style="visibility:hidden;">占位符</span>历</span>
                    <textarea id="resume" class="form-control" disabled="disabled" style="background: #ffffff;" rows="5">{{$wechatDoctor['wechatDoctorInfo']['resume']}}</textarea>
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon">医生二维码</span>
                    <img style="width: 200px;" src="{{$qrcode}}">
                </div>
                <br>
                <a href="/admin/wechat-doctor/the-user-list?openid={{$wechatDoctor['openid']}}">
                    <button type="button" class="btn btn-warning btn-block create_btn">查看所属用户</button>
                </a>
                <br>
                @endif
                @if(count($wechatDoctor['wechatDoctorInfo'])!=0)
                <a href="/admin/wechat-doctor/update?id={{ $wechatDoctor['id'] }}">
                    <button type="button" class="btn btn-primary btn-block create_btn">修改认证</button>
                </a>
                <br>
                @else
                <a href="/admin/wechat-doctor/create?id={{ $wechatDoctor['id'] }}">
                    <button type="button" class="btn btn-primary btn-block create_btn">认证医生</button>
                </a>
                @endif
                <a href="javascript:history.back(-1)">
                    <button type="button" class="btn btn-info btn-block create_btn">返回上一页</button>
                </a>
                <br>
            </div>
        </div>
        <!-- END INPUTS -->
    </div>
</div>
@stop

@section("js")
    @parent
    <script type="text/javascript" src="/js/pages/admin/user/create.js"></script>
@stop